using System.IO;
using System.Collections.Generic;
namespace Framework.DataTable
{
/*
var s = @"#配制表	index可创建索引		cs可创结构分支		可创建数据分支	适用于多语言	
#define	cs	c	cs	cs	c	c	c
#name	Id	Name	Open	Time	Text#ch	Text#en	PList
#type	index#int	string	bool	float	string	string	int[]
#comment 
#备注							
	3	c	1	100	二	two	{1,2,3}
	4	d	0	66	三	three	{1,2,3}
*/
    public class DataTableConfigBase
    {
        public bool Enabled { get; protected set; }
        public string FileName { get; private set; }
        public string TableName { get; private set; }
        public DataTableFieldHeader Header = new DataTableFieldHeader();
        public List<string[]> DataInfos { get; protected set; }
        public void SetTableName(string value)
        {
            this.TableName = value;
        }
        public virtual void ReadFile(string path)
        {
            FileName = Path.GetFileName(path);
        }
    }
}